package com.whfp.coky.ui.task.frag

import androidx.fragment.app.Fragment
import com.whfp.coky.CopyFrag
import com.whfp.coky.databinding.FragFluorProjBinding
import com.whfp.coky.manager.TabManage
import com.whfp.coky.other.Constants
import com.whfp.coky.ui.base.BaseFragment
import com.whfp.coky.ui.task.vm.fluor.FluorProjFragVM
import com.whfp.coky.utils.LogUtil

/**
 *
 *
 * created by coky on 2022/3/16
 */
class FluorProjFrag :BaseFragment<FluorProjFragVM,FragFluorProjBinding>(){

    companion object{
        fun newInstance(): FluorProjFrag {
            return FluorProjFrag()
        }
    }

    private val tabTexts = arrayOf(Constants.TAB_FLUOR_PROJ_DEV, Constants.TAB_FLUOR_PROJ_CLOUD)
    private val fragments :Array<Fragment>  = arrayOf(
        CopyFrag.newInstance(),
        FluorProjCloudFrag.newInstance()
    )

    override fun initView() {
        LogUtil.e("Constants.TAB_FLUOR_PROJ_DEV:${Constants.TAB_FLUOR_PROJ_DEV}")
        TabManage(vBinding.tlFluorProj,vBinding.vpFluorProj).initTab(this,tabTexts,fragments)
    }

    override fun initData() {

    }
}